//
//  ApiManager.m
//  kabu
//
//  Created by XiangDongMBP on 2017/1/23.
//  Copyright © 2017年 East. All rights reserved.
//

#import "ApiManager.h"

@implementation ApiManager

// 登录模块
+ (NSString *)apiPwdLogin {
    return @"/appapi/login_password";
}
+ (NSString *)apiLogin {
    return @"/appapi/login";
}
+ (NSString *)apiCheckCode {
    return @"/appapi/login_checkcode";
}
+ (NSString *)apiPassword {
    return @"/appapi/password";
}

// 消息

// 设备
+ (NSString *)apiDeviceList {
    return @"/appapi/device_list";
}

+ (NSString *)apiDeviceOld {
   return @"/appapi/device";//老版本
    
}
+ (NSString *)apiDevice {
    return @"/appapi/device_rt_info";
}

//通道修改
+(NSString *)apiPassagewayUpdate{
    return @"/appapi/device_multi_channel_setting";
}

//设备图表
+(NSString *)apiDeviceChart{
    return @"/appapi/device_waveform_data";
}

+ (NSString *)apiDeviceControl {
    return @"/appapi/device_control";
}
+ (NSString *)apiDeviceMsgList {
    return @"/appapi/device_msglist";
}
+ (NSString *)apiDevUnhandleMsgList {
    return @"/appapi/device_unhandlemsg_list";
}
+ (NSString *)apiDeviceSetting {
//    return @"/appapi/device_setting";
    return @"/appapi/device_light_data_setting";
}

+ (NSString *)apiDeviceUpdate {
    return @"/appapi/device_update";
}
+ (NSString *)apiDeviceVersion {
    return @"/appapi/device_version";
}
+ (NSString *)apiDeviceVersionList {
    return @"/appapi/device_version_list";
}
+ (NSString *)apiCompanyCodeList {
    return @"/appapi/device_companycode_list";
}
+ (NSString *)apiUsageCodeList {
    return @"/appapi/device_usagecode_list";
}

// 应用
// --项目管理--
+ (NSString *)apiProjectList {
    return @"/appapi/project_list";
}
+ (NSString *)apiPjtManagerList {
    return @"/appapi/manage_project_list";
}
+ (NSString *)apiPjtManager {
    return @"/appapi/manage_project";
}
+ (NSString *)apiProject {
    return @"/appapi/project";
}
+ (NSString *)apiPjtFreetypeList {
    return @"/appapi/project_feetype_list";
}
+ (NSString *)apiPjtMgrDevList {
    return @"/appapi/manage_project_device_list";
}
+ (NSString *)apiPjtMgrDevice {
    return @"/appapi/manage_project_device";
}
+ (NSString *)apiPjtIotCardList {
    return @"/appapi/iotcard_list";
}
+ (NSString *)apiPjtMgrUserList {
    return @"/appapi/manage_project_user_list";
}
+ (NSString *)apiPjtMgrUserDevice {
    return @"/appapi/manage_project_user_and_user_device";
}
+ (NSString *)apiPjtMgrUser {
    return @"/appapi/manage_project_user";
}
+ (NSString *)apiPjtMgrGMList {
    return @"/appapi/manage_project_gm_list";
}
+ (NSString *)apiPjtMgrGM {
    return @"/appapi/manage_project_gm";
}
+ (NSString *)apiPjtMgrUserDevList {
    return @"/appapi/manage_user_device_list";
}
+ (NSString *)apiPjtMgrSelDevList {
    return @"/appapi/manage_project_user_device_list";
}
+ (NSString *)apiPjtMgrUserAddDev {
    return @"/appapi/user_add_device";
}

//获取区域地址
+(NSString *)apiPjtGeoInfoList {
    return @"/appapi/project_geo_info_list";
}

//获取报表区域地址
+(NSString *)apiReportGeoInfoList {
    return @"/appapi/report_project_geo_list";
}


//获取项目信息列表
+(NSString *)apiPjtList {
    return @"/appapi/project_list";
}




// ------------------报表-------------------
+ (NSString *)apiReport {
    return @"/appapi/report";
}

//报表列表
+(NSString *)apiReportList{
    return @"/appapi/report_list";
}

//查询可供生成报表的项目列表
+(NSString *)apiReportProjectList{
    return @"/appapi/report_project_list";
}

//删除报表
+(NSString *)apiDeleteReport{
    return @"/appapi/report";
}

//查询报表的基本信息
+(NSString *)apiReportBasicInfo{
    return @"/appapi/report_basic_info";
}

//查询根据项目已生成的报表列表
+(NSString *)apiReportProjectInfoList{
    return @"/appapi/report_project_info_list";
}

//查询项目报警次数和报警占比
+(NSString *)apiReportProjectDetailInfo{
    return @"appapi/report_project_detail_info";
}

//查询项目下期中一个设备的报警点位列表信息
+(NSString *)apiReportProjecDeviceList{
    return @"/appapi/report_project_device_list";
}

//查询设备报警详情列表（设备报警报表详情）
+(NSString *)ApiProjectDeviceAlarmList{
    return @"/appapi/report_project_device_alarm_list";
}

//查询设备报警详情列表（设备报警报表详情）
+(NSString *)ApiReportProjectDeviceInfo{
   return @"/appapi/report_project_device_info";
}




// --公告--
+ (NSString *)apiAnnouncement {
    return @"/appapi/announcement";
}
+ (NSString *)apiAnnouncementList {
    return @"/appapi/announcement_list";
}
+ (NSString *)apiAnnouncementIsRead {
    return @"/appapi/announcement_is_read";
}
// --维护记录--
+ (NSString *)apiMaintainRecord {
    return @"/appapi/maintain_record";
}
+ (NSString *)apiMaintainRcdList {
    return @"/appapi/maintain_record_list";
}
+ (NSString *)apiMaintainDevRcdList {
    return @"/appapi/device_maintain_record_list";
}
// --报警记录--
+ (NSString *)apiAlarmRecord {
//    return @"/appapi/alarmrecord";
    return @"/appapi/device_alarm_record";
}

//报警未处理记录
+ (NSString *)apiAlarmNoDisposeList{
    return @"/appapi/device_unhandle_alarm_msg_list";
}

//报警已处理列表
+ (NSString *)apiAlarmDisposeList{
    return @"/appapi/device_alarm_record_list";
}
//报警已处理记录详情
+ (NSString *)apiAlarmDispose{
    return @"/appapi/device_alarm_record";
}

//从报警列表页面过来查询报警信息编号id
+(NSString *)apiQueryAlarmIds{
    return @"/appapi/cache_device_alarm_statistics_id_list";
}

//根据id查询报警信息
+(NSString *)apiQueryAlarmInfoByIds{
    return @"/appapi/device_unhandle_alarm_statistics_list_by_id";
}

//从设备聊天界面过来根据报警id查询报警编号id
+(NSString *)apiQueryAlarmIdsById{
    return @"/appapi/cache_device_alarm_msg_id_list";
}

+ (NSString *)apiAlarmRcdList {
    return @"/appapi/alarmrecord_list";
}
+ (NSString *)apiAlarmUnhandleList {
    return @"/appapi/unhandle_device_list";
}
// --隐患曝光--
+ (NSString *)apiDanger {
    return @"/appapi/hidden_danger";
}
+ (NSString *)apiDangerList {
    return @"/appapi/hidden_danger_list";
}

// 个人中心
+ (NSString *)apiMineUserCenter {
    return @"/appapi/user_center";
}
+ (NSString *)apiFeedback { ///< 用户反馈
    return @"/appapi/feedback";
}

// 个人中心-关于-是否开启消息发送
+ (NSString *)apiUserConfig {
    return @"/appapi/user_config";
}

// 七牛
+ (NSString *)apiQiniuUploadToken {
    return @"/appapi/qiniu_upload_token";
}
// 发布审核状态
+ (NSString *)apiIosReleaseCheck {
    return @"/appapi/ios_release_check";
}
@end
